/**
 * Created by dell on 2018/5/27.
 */
import java.util.Date;
import java.text.SimpleDateFormat;
public class buy {
    private String shijian= null;
    private String num = null;
    private String ynum = null;

    public buy(String num,String ynum){
         this.num=num;
        this.ynum=ynum;
        getShijian();
    }
    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }
    public String getShijian() {
        Date date= new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        //获取String类型的时间
        shijian = sdf.format(date);
        return shijian;
    }

    public void setShijian(String shijian) {
        this.shijian= shijian;
    }
    public String getYnum() {
        return ynum;
    }

    public void setYnum(String ynum) {
        this.ynum = ynum;
    }
}
